/**
 * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.ibdsr.human.constant;

/**
 * jwt相关配置
 *
 * @Version V1.0
 * @CreateDate 2019/5/7 13:34
 * <p>
 * Date           Author               Description
 * ------------------------------------------------------
 * 2019/5/7      Wujiayun            类说明
 */
public interface JwtConstants {

    String SCENICBOOT = "account:";
    String AUTH_HEADER = "Authorization";

    /**
     * 密钥串
     */
    String SECRET = "c8d5379c-c7ae-404a-85b7-f296e2009e83";

    /**
     * 失效时间
     */
    Integer[] EXPIRE_TIME = {
            1 * 24 * 60 * 60, //窗口登录失效时间，1天
            7 * 24 * 60 * 60,//移动端登录失效时间，7天
            7 * 24 * 60 * 60,//闸机登录失效时间，7天
            30 * 24 * 60 * 60//售票机登录失效时间，30天
    };

    /**
     * 不需要授权的链接
     */
    String[] AUTH_PATH = {
            "/notification/{id}",
            "/notification/notifications",
            "/home",
            "/swagger-resources/",
            "/swagger-ui.html",
            "/v2/api-docs",
            "/webjars/",
            "/user-details/jobs",//用户首页
            "/users/login",
            "/users/new-user",
            "/data-center/phone",
            "/data-center/jobs",
            "/data-center/companies",
            "/data-center-screen",
            "/images",
            "/images/backup",
            "/ads",
            "/commons/educations",
            "/commons/marries",
            "/commons/marries",
            "/commons/politics",
            "/commons/genders",
            "/commons/experiences",
            "/commons/work-types",
            "/commons/company-propers"
    };

    /**
     * 退出链接
     */
    String[] LOGOUT_PATH = {"/api/mobileLogin/logout"};

    /**
     * get请求
     */
    String[] GET_PATH = {"/api/orderTicketReport/getBusinessReportPDF"};

    /**
     * 开放平台接口前缀
     */
    String OPENAPI_PREFIX = "/openapi";


    String POLITIC = "POLITIC";
    String EDUCATION = "EDUCATION";
    String MARRIED = "MARRIED";
    String EXPERIENCE = "EXPERIENCE";
    String COMPANY_PROPER = "COMPANY_PROPER";
    String WORK_TYPE = "WORK_TYPE";
    String NO_LIMIT = "不限";
}
